//坐骑改名 {"名称":"汗血宝马111","序列":1}
// @ts-ignore
export async function execute(client_id,message_json) {
    let characters = G.Characters.get_current_login_characters(client_id);
    let index = message_json["序列"]-1;
    let mounts_data = characters["坐骑列表"][index];
    if (mounts_data === undefined) {
        ClientUtils.send_basic_prompt(client_id, "#Y坐骑不存在");
        return;
    }
    mounts_data["名称"] = message_json["名称"];
    if (characters["坐骑"] !== null && mounts_data["认证码"] === characters["坐骑"]["认证码"]) {
        mounts_data["参战信息"]=1;
        mounts_data["index"]=index;
        characters["坐骑"]=mounts_data;
    }
    ClientUtils.send_basic_prompt(client_id, "#G改名成功！");
    ClientUtils.send_client_message(client_id, 61, characters["坐骑列表"]);
}